﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mappings;

namespace Apollo
{
    [Serializable]
    [NHibernateEntity(Table = "apl_BulkImportRows")]
    public class BulkImportRow
    {
        public BulkImportRow() { }

        [PrimaryKey]
        public virtual int Id { get; set; }

        [BelongsTo(Column = "ID_BulkImport")]
        public virtual BulkImport BulkImport { get; set; }

        [Property]
        public virtual int RowNumber { get; set; }

        [Property]
        public virtual BulkImportRowState BulkImportRowState { get; set; }

        [Property]
        public virtual string ObjectId { get; set; }
    }

    public enum BulkImportRowState { 
        None = 0,
        Success = 1,
        Failed = 2
    }
}
